package zb.blog.base.global;

/**
 * @Author: BinZhang
 * @Date: 2018/5/1 20:01
 * @Description:主要存储一些全局变量，主要是常量
 */
public class GlobalVar {
    public static final Boolean SUCCESS = true;//成功 状态
    public static final Boolean FAIL = false;//失败 状态

    public static final String LOGIN_USER = "loginUser";//登录人信息，存入session中的key

    //网站相关
    public static final String WEB_SITE = "http://www.zhangbin.xin";//网站域名+端口号
    //public static final String PROJECT_NAME = "zbBlog";//网站项目名
    public static final String HOME_URL = WEB_SITE;//网站域名+端口号+项目名 （首页）
    public static final String DETAIL_PAGE_URL = HOME_URL + "/frontstage/detail.html";
    public static final String NICKNAME = "1的N次幂";//昵称

    //七牛云
    public static final String QNY_ACCESS_KEY = "sEBPYr4EMMZdxDiMrji1bmle0x6HX5tfjkVyKVgi";
    public static final String QNY_SECRET_KEY = "JYrdAA1iyRaJ-1pROWtL3e7u68pNikCJjvzPwChP";
    public static final String QNY_ARTICLE_URL = "http://article.zhangbin.xin";//文章banner图片存储地址
    public static final String QNY_ARTICLE_BUCKET = "article";//文章正面翻牌图片存储bucketname
    public static final String QNY_DEMO_URL = "http://user.zhangbin.xin";//演示压缩包私有地址
    public static final String QNY_DEMO_BUCKET = "user";//演示文件序存储在私有bucketname中
    public static final String QNY_SITE = "http://home.zhangbin.xin/";//公共页面存储地址
    public static final String QNY_FAVORITE_ICON = QNY_SITE + "Head.png";//favorite图标或者是头像
    public static final String QNY_DEFAULT_HEADER_IMG = QNY_SITE + "defaultHeader.jpg";//访客默认头像
    public static final long QNY_EXPIRE_SECONDS = 10;//下载链接过期时间 10分钟

    //分页
    public static final int PAGE_NUM = 1;//分页，默认从第一页查询
    public static final int ART_PAGE_SIZE = 6;//翻牌分页，默认每页6条数据
    public static final int COMM_PAGE_SIZE = 5;//分页，默认每页5条数据
    public static final int MSG_PAGE_SIZE = 5;//分页，消息分页
    public static final int NOTICE_PAGE_SIZE = 5;//分页，公告分页

    //极验验证
    public static final String GEETEST_ID = "c479e5791ccbd1d8be544167f0356e3e";//极验验证 验证码ID
    public static final String GEETEST_KEY = "39735e216009b307855015f7f3baa990";//极验验证 验证码KEY
    public static final boolean NEWFAILBACK = true;//极验验证 是否启用failback模式验证 true：启用

    //邮件部分
    public static final String EMAIL_ADDR = "405848266@qq.com"; // 发件人邮箱地址
    public static final String EMAIL_USERNAME = "405848266@qq.com"; // 发件人称号，同邮箱地址
    public static final String EMAIL_PASSWORD = "azjebfjxowlsbjif"; // 发件人邮箱客户端授权码
    public static final String EMAIL_SMTP = "smtp.qq.com";//smtp 协议
    public static final String EMAIL_SMTP_PROTOCOL = "smtp";//协议名

    //留言板id
    public static final String MESSAGE_ID = "152B2AcAA60E_B121";

    //ip缓存时间为24小时 (单位毫秒)
    public static final long IP_EXPIRE = 24 * 60 * 60 * 1000;//点赞和资源下载使用同一个（24小时过期）

    //页面
    public static final int MAIN_PAGE = 10;//主页面
    public static final int SUB_PAGE = 6;//子页面


}
